package com.sun.dailyprj.androidx.recyclerview.base;

import android.content.Context;

import com.sun.common.recyclerview.BaseBindingAdapter;
import com.sun.dailyprj.R;
import com.sun.dailyprj.databinding.RecyclerItemBinding;

public class WorkerAdapter extends BaseBindingAdapter<Worker, RecyclerItemBinding>{
    public WorkerAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.recycler_item;
    }

    @Override
    protected void onBindItem(RecyclerItemBinding binding, Worker item,int position) {
        binding.setModel(item);
        binding.executePendingBindings();
    }

}
